package com.ttbj.yitongpay.bean;

import java.io.Serializable;
/**
 * 主动扫码类 
 */
public class ActiveScanQRCodeData implements Serializable{
	
	private static final long serialVersionUID = 8473504247090998502L;
	private String version;	//版本号：必填项：默认1.0.0
	private String transCode;	//交易代码：必填项：默认 8888：普通支付 
	private String merchantId;	//商户号：必填项：测试环境 888888888888888 
	private String merOrderNum;	//商户订单号：必 填 项 ： 商 户 自 行 设 定 例 如 ：0000010000100000
	private String bussId;	//业务代码：必填项：测试环境：100000
	private String tranAmt;	//交易金额(单位： 分) 精确到分，例如 100 代表 1 元 
	private String sysTraceNum;	//商户请求流水号：必 填 项 ， 商 户 自 行 设 定 例 如 ：0000010000100000
	private String tranDateTime;	//交易时间：必 填 项 ， YYYYMMDDHHMMSS 例如：20171024091930 
	private String currentyType;	//货币代码：必填项，，默认值 156。156 表示人民币 
	private String merURL;	//商户返回页面：必填项，页面返回地址展示给用户的地址。同步回调地址
	private String backURL;	//回调商户地址：必填项，异步通知的回调地址。为空时不会调)
//	private String orderInfo;	//订单信息：非必填，值可以为空--->不传这个参数了，传了会返回html代码
	private String userId;	//用户ID：默认为空
	private String userIp;	//订单用户 IP：非必填，值可以为空，值为空时表示不验证
	private String bankId;	//支付方式代码：被扫：888880601002900
	private String stlmId;	//结算规则代码：值可以为空
	private String entryType;	//入口类型：必填项，默认传值 1 
	private String authCode;	//授权码：必填项：主扫传空
	private String activeTime;	//扫码支付有效期：必填项： 单位分钟，不传值默认 3 分钟 
	private String channel;	//扫码渠道：必填项，主扫传空
	private String attach;	//附加数据：查询时返回原样
	private String payPage;	//是否显示易通支付页面：必填项，默认true 显示：true，不显示：false
	
	
	public ActiveScanQRCodeData() {
		// TODO Auto-generated constructor stub
	}
	
	//构造一个必须传的属性的构造方法
	public ActiveScanQRCodeData(String merOrderNum, String tranAmt, String sysTraceNum, String payPage) {
		this.merOrderNum = merOrderNum;
		this.tranAmt = tranAmt;
		this.sysTraceNum = sysTraceNum;
		this.payPage = payPage;
	}

	@Override
	public String toString() {
		return "ScanORCodeData [version=" + version + ", transCode=" + transCode + ", merchantId=" + merchantId
				+ ", merOrderNum=" + merOrderNum + ", bussId=" + bussId + ", tranAmt=" + tranAmt + ", sysTraceNum="
				+ sysTraceNum + ", tranDateTime=" + tranDateTime + ", currentyType=" + currentyType + ", merURL="
				+ merURL + ", backURL=" + backURL + ", userId=" + userId + ", userIp="
				+ userIp + ", bankId=" + bankId + ", stlmId=" + stlmId + ", entryType=" + entryType + ", authCode="
				+ authCode + ", activeTime=" + activeTime + ", channel=" + channel + ", attach=" + attach + "]";
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getTransCode() {
		return transCode;
	}

	public void setTransCode(String transCode) {
		this.transCode = transCode;
	}

	public String getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	public String getMerOrderNum() {
		return merOrderNum;
	}

	public void setMerOrderNum(String merOrderNum) {
		this.merOrderNum = merOrderNum;
	}

	public String getBussId() {
		return bussId;
	}

	public void setBussId(String bussId) {
		this.bussId = bussId;
	}

	public String getTranAmt() {
		return tranAmt;
	}

	public void setTranAmt(String tranAmt) {
		this.tranAmt = tranAmt;
	}

	public String getSysTraceNum() {
		return sysTraceNum;
	}

	public void setSysTraceNum(String sysTraceNum) {
		this.sysTraceNum = sysTraceNum;
	}

	public String getTranDateTime() {
		return tranDateTime;
	}

	public void setTranDateTime(String tranDateTime) {
		this.tranDateTime = tranDateTime;
	}

	public String getCurrentyType() {
		return currentyType;
	}

	public void setCurrentyType(String currentyType) {
		this.currentyType = currentyType;
	}

	public String getMerURL() {
		return merURL;
	}

	public void setMerURL(String merURL) {
		this.merURL = merURL;
	}

	public String getBackURL() {
		if (this.backURL == null) {
			return "";
		}
		return backURL;
	}

	public void setBackURL(String backURL) {
		this.backURL = backURL;
	}

	public String getUserId() {
		if (this.userId == null) {
			return "";
		}
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserIp() {
		if (this.userIp == null) {
			return "";
		}
		return userIp;
	}

	public void setUserIp(String userIp) {
		this.userIp = userIp;
	}

	public String getBankId() {
		if (this.bankId == null) {
			return "";
		}
		return bankId;
	}

	public void setBankId(String bankId) {
		this.bankId = bankId;
	}

	public String getStlmId() {
		if (this.stlmId == null) {
			return "";
		}
		return stlmId;
	}

	public void setStlmId(String stlmId) {
		this.stlmId = stlmId;
	}

	public String getEntryType() {
		return entryType;
	}

	public void setEntryType(String entryType) {
		this.entryType = entryType;
	}

	public String getAuthCode() {
		if (this.authCode == null) {
			return "";
		}
		return authCode;
	}

	public void setAuthCode(String authCode) {
		this.authCode = authCode;
	}

	public String getActiveTime() {
		return activeTime;
	}

	public void setActiveTime(String activeTime) {
		this.activeTime = activeTime;
	}

	public String getChannel() {
		if (this.channel == null) {
			return "";
		}
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public String getAttach() {
		return attach;
	}

	public void setAttach(String attach) {
		this.attach = attach;
	}
	
	public String getPayPage() {
		return payPage;
	}
	
	public void setPayPage(String payPage) {
		this.payPage = payPage;
	}
	
}
